package com.yu.bean;

import java.io.Serializable;
import java.util.List;

public class User implements Serializable {


    private static final long serialVersionUID = -5160701489580247884L;
    private Integer user_id;
    private String username;
    private String password;
    private List<Role> roles;
    private int MHP;
    private int AC;
    private int HP;
    private int MMP;
    private int MP;
    private String Item_list;
    private String Task;
    public User(){};

    public User(User u)
    {
        this.user_id=u.getUser_id();
        this.username=u.getUsername();
        this.HP=u.getHP();
        this.MP=u.getMP();
        this.AC=u.getAC();
        this.MHP=u.getMHP();
        this.MMP=u.getMMP();
        this.Item_list=u.getItem_list();
        this.Task=u.getTask();
    }

    public Integer getUser_id() {
        return user_id;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public List<Role> getRoles() {
        return roles;
    }

    public void setRoles(List<Role> roles) {
        this.roles = roles;
    }
    public String toString()
    {
        return username+" HP:"+String.valueOf(HP)+"/"+String.valueOf(MHP)+" AC:"+String.valueOf(AC);
    }

    public int getAC() {
        return AC;
    }

    public int getHP() {
        return HP;
    }

    public int getMHP() {
        return MHP;
    }

    public void setHP(int HP) {
        this.HP = HP;
    }

    public int getMMP() {
        return MMP;
    }

    public int getMP() {
        return MP;
    }

    public String getItem_list() {
        return Item_list;
    }

    public String getTask() {
        return Task;
    }

    public void setMP(int MP) {
        this.MP = MP;
    }

    public void setAC(int AC) {
        this.AC = AC;
    }

    public void setMHP(int MHP) {
        this.MHP = MHP;
    }

    public void setMMP(int MMP) {
        this.MMP = MMP;
    }

    public void setItem_list(String text) {
        this.Item_list = text;
    }

    public void setTask(String task) {
        Task = task;
    }
}
